/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.DeletesFacade;
import org.ipti.br.tag.entity.Deletes;
import java.util.Calendar;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author israel
 */
@Stateless
public class DeletesBO {

    @Inject
    private DeletesFacade deletesDAO;

    public DeletesFacade getDeletesDAO() {
        return deletesDAO;
    }

    public void create(Deletes deletes) {
        getDeletesDAO().create(deletes);
    }

    public void edit(Deletes deletes) {
        getDeletesDAO().edit(deletes);
    }

    public void remove(Deletes deletes) {
        getDeletesDAO().remove(deletes);
    }

    public Deletes find(Object id) {
        return getDeletesDAO().find(id);
    }

    public List<Deletes> findAll() {
        return getDeletesDAO().findAll();
    }

    public List<Deletes> DeletesBetweenDate(Calendar initialDate, Calendar finalDate, Long serialNumber) {
        return getDeletesDAO().DeletesBetweenDate(initialDate, finalDate, serialNumber);
    }
}
